package com.fr.report.script;

import com.fr.report.script.core.parser.ConditionalOrExpression;
import com.fr.report.script.core.parser.UtilEvalError;

public abstract class DelayedFunction extends AbstractFunction
{
  public Object[] processArguments(ConditionalOrExpression[] paramArrayOfConditionalOrExpression)
    throws UtilEvalError
  {
    Object[] arrayOfObject = new Object[paramArrayOfConditionalOrExpression.length];
    for (int i = 0; i < paramArrayOfConditionalOrExpression.length; ++i)
      if (i > 0)
        arrayOfObject[i] = paramArrayOfConditionalOrExpression[i];
      else
        arrayOfObject[i] = paramArrayOfConditionalOrExpression[i].eval(getCalculator());
    return arrayOfObject;
  }
}